#使用循环和列表推导找出单词长度大于某个 数字的单词
# ■ words = ["apple", "banana", "orange", "peach","kiwi"]

# 循环
s = input()
d = int(s)
words = ["apple", "banana", "orange", "peach","kiwi"]
for i in words :
    if len(i) > d :
        print(i)


#列表
s = input()
d = int(s)
words = ["apple", "banana", "orange", "peach","kiwi"]
def findw(n):
    resW = []
    for i in words:
        if len(i) > n :
            resW.append(i)
    return resW

w = findw(d)
print(w)

#TODO 这个题目有点不明白，什么叫列表推导
#参考了答案，发现就是最后结果保存在列表中
#列表推导 运行结果:
#输入 3
#输出 ['apple', 'banana', 'orange', 'peach', 'kiwi']


#答案：
'''
循环
    words=['apple','banana','orange','peach','kiwi']
    [i for i in words if int(len(i))>5]

'''
'''
列表
    words=['apple','banana','orange','peach','kiwi']
    def findlen(n):
        bigthan=[]
        for i in words:
            if int(len(i))>n:
                bigthan.append(i)
        return bigthan
    findlen(5)
'''